-- card: 2818 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2192 -- name: -- part 1 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=268 top=263 right=285 bottom=393 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Convert a Sound ----- HyperTalk script ----- on mouseUp -- SoundCapToRes takes four arguments: -- the name you want to call the sound -- the file that contains the SoundCap output (in quotes) -- the stack in which you want to put the sound -- the base pitch of the sound (60, 72, 79, or 84) -- Here we get them from lines of the text field: put line 1 of card field "parameters" into args put "," & line 2 of card field "parameters" after args put "," & line 3 of card field "parameters" after args put "," & line 4 of card field "parameters" after args do "SoundCapToRes" && args -- SoundCapToRes was written by Steve Milne and Ted Kaehler. end mouseUp -- part 2 (field) -- low flags: 00 -- high flags: 2004 -- rect: left=211 top=183 right=258 bottom=493 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: parameters -- part 3 (button) -- low flags: 00 -- high flags: 8003 -- rect: left=267 top=291 right=313 bottom=393 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Let me hear it ----- HyperTalk script ----- on mouseUp put "Play" && line 1 of card field "parameters" into cmd put line 3 of card field "parameters" into dest go dest put cmd end mouseUp -- part contents for background part 4 ----- text ----- It takes four arguments: the name you want to call the sound, the file that contains the SoundCap output, the stack in which you want to put the sound, and the base pitch of the sound. Files must be complete path names. The stack cannot be the current stack or home. The base pitches of (60, 72, 79, and 84) are for sample rates of (x1, x2, x3, and x4). Name of the sound SoundCap file Destination stack BaseNote Fill in the args and click here: -- part contents for card part 2 ----- text ----- Flute "HD:XCMDs:Flute" "HD:XCMDs:Sounds" 60